From f49138b564c6c16503379644a7883ef6d71a451a Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 7 Aug 2025 12:08:05 +0200 Subject: [PATCH] modemmanager: add missing ppp ifname option value The pppd supports the option to configure the name of the network interface at startup using the ifname option. The pppd can overwrite the name of the network interface at startup using the 'ifname' configuration option. If this option is not specified, the new network interface is created according to the following scheme: ppp, e.g. ppp0, ppp1 and so on. This can therefore change with every start if the number has been already assigned to another ppp connection. In order to always get the same interface name with the modemmanger proto via ppp, it is created according to the new scheme by setting the 'ifname': ppp-, e.g. ppp-wwan. Signed-off-by: Florian Eckert --- net/modemmanager/files/lib/netifd/proto/modemmanager.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/net/modemmanager/files/lib/netifd/proto/modemmanager.sh b/net/modemmanager/files/lib/netifd/proto/modemmanager.sh index 0444ba842d..8ed94c5084 100644 --- a/net/modemmanager/files/lib/netifd/proto/modemmanager.sh +++ b/net/modemmanager/files/lib/netifd/proto/modemmanager.sh @@ -83,6 +83,7 @@ modemmanager_connected_method_ppp_ipv4() { proto_run_command "${interface}" /usr/sbin/pppd \ "${ttyname}" \ + ifname "ppp-${interface}" \ 115200 \ nodetach \ noaccomp \ -- 2.30.2